import "pkl:test"

class X {
  a: Int("not a boolean")
  b: Int((x) -> "not a boolean")
}

res1 = test.catch(() ->
  new X {
    a = 1
  }.a
)

res2 = test.catch(() ->
  new X {
    b = 1
  }.b
)
